from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By
import os

driver = webdriver.Firefox()
driver.get("http://www.baidu.com")
ele = driver.find_element(By.ID, "新闻")
ele.click()
sleep(2)
driver.close()
